package org.hxzon.workeasy.service;

import java.util.List;

import org.hxzon.project.ModelService;
import org.hxzon.workeasy.model.EasyUzer;

public interface EasyUserService extends ModelService<EasyUzer> {
    public EasyUzer findByUsername(String username);

    public EasyUzer findByUsernameAndPassword(String username, String password);

    public List<EasyUzer> findByDepartment(int department);

    public boolean existUsername(String username);

    public boolean isAdmin(String username);

    public boolean isAdmins(String username);
}
